15f44f34166438586c6ee0a3681733b7164f0650,hystrix-core/src/test/java/com/netflix/hystrix/HystrixThreadPoolPropertiesTest.java,HystrixThreadPoolPropertiesTest,testSetMaximumSizeOnlyGreaterThanDefaultCoreSize,#,133
Before Change
@Test
public void testSetMaximumSizeOnlyGreaterThanDefaultCoreSize() {
HystrixThreadPoolProperties properties = new HystrixThreadPoolProperties(TestThreadPoolKey.TEST,
HystrixThreadPoolProperties.Setter().withMaximumSize(21)) {
};
After Change
public void testSetMaximumSizeOnlyGreaterThanDefaultCoreSizeWithDivergenceAllowed() {
HystrixThreadPoolProperties properties = new HystrixThreadPoolProperties(TestThreadPoolKey.TEST,
HystrixThreadPoolProperties.Setter()
.withMaximumSize(21)
.withAllowMaximumSizeToDivergeFromCoreSize(true)) {
};
assertEquals(HystrixThreadPoolProperties.default_coreSize, properties.coreSize().get().intValue());